package com.koron.css2.newProjectCenter.mapper;

import com.koron.css2.newProjectCenter.bean.PjMaterialBean;
import com.koron.css2.newProjectCenter.bean.query.PjMaterialQueryBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PjMaterialMapper {

    PjMaterialBean selectById(String id);

    int countMaterialNo(String materialNo);

    PjMaterialBean selectMaterial(String materialNo);

    List<PjMaterialBean> selectList(PjMaterialQueryBean query);

    List<String> selectIdList();

    int updatePjMaterial(PjMaterialBean pjMaterial);

    int addPjMaterial(PjMaterialBean pjMaterial);

    int batchAddPjMaterial(@Param("pjMaterialList") List<PjMaterialBean> pjMaterialList);

    int batchUpdatePjMaterial(@Param("pjMaterialList") List<PjMaterialBean> pjMaterialList);

    int deleteById(String id);

    int deleteByIdList(@Param("idList") List<String> idList);

    int deleteAll();

}
